﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinTime.Data.Entity;

/// <summary>
/// 应用信息模型
/// </summary>
public class AppModel
{

    [Key]
    public int ID
    {
        get; set;
    }

    /// <summary>
    /// 名称
    /// </summary>
    public string Name
    {
        get; set;
    }
    /// <summary>
    /// 描述
    /// </summary>
    public string Description
    {
        get; set;
    }
    /// <summary>
    /// 文件
    /// </summary>
    public string File
    {
        get; set;
    }

    /// <summary>
    /// 图标路径
    /// </summary>
    public string IconFile
    {
        get; set;
    }
    /// <summary>
    /// 累计使用时长
    /// </summary>
    public int TotalTime
    {
        get; set;
    }

    /// <summary>
    /// 分类ID
    /// </summary>
    public int CategoryID
    {
        get; set;
    }

    public virtual CategoryModel? Category
    {
        get; set;
    }
}